package net.zjitc;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Data
@Component("product")
@Scope("singleton")
public class Product {
    @Value("电脑")
    private String name;
    @Value("5999.99")
    private Float price;
}
